package org.jeecg.modules.flowable.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 流程实例参与者信息
 */
@Data
@ApiModel(value = "flow_instance_participant对象", description = "流程实例参与者")
@TableName(value = "flow_instance_participant")
public class FlowInstanceParticipant implements Serializable {

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "目标类型（用户、角色、部门）")
    private Integer targetType;

    @ApiModelProperty(value = "目标id（用户Id，角色Id，部门Id）")
    private String targetId;

    @ApiModelProperty(value = "目标名称")
    private String targetName;

    @ApiModelProperty(value = "流程实例id")
    private String processInstanceId;

    @ApiModelProperty(value = "流程实例名称")
    private String processInstanceName;

    @ApiModelProperty(value = "节点id")
    private String activityId;

    @ApiModelProperty(value = "使用场景")
    private Integer useScenarios;

}
